package com.jjy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class BackendController {

  @RequestMapping("/widgetsPage")
  public String widgetsRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/widgets";
  }

  @RequestMapping("/starterPage")
  public String starterRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/starter";
  }

  @RequestMapping("/calendarPage")
  public String calendarRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/calendar";
  }

  @RequestMapping("/chartjsPage")
  public String chartjsRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/charts/chartjs";
  }

  @RequestMapping("/flotPage")
  public String flotRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/charts/flot";
  }

  @RequestMapping("/inlinePage")
  public String inlineRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/charts/inline";
  }

  @RequestMapping("/generalUIPage")
  public String generalUIRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/UI/generalUI";
  }
  @RequestMapping("/iconsPage")
  public String iconsRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/UI/icons";
  }

  @RequestMapping("/buttonsPage")
  public String buttonsRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/UI/buttons";
  }
  @RequestMapping("/slidersPage")
  public String slidersRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/UI/sliders";
  }
  @RequestMapping("/generalFormPage")
  public String generalFormRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/forms/general";
  }
  @RequestMapping("/advancedFormPage")
  public String advancedFormRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/forms/advanced";
  }
  @RequestMapping("/editorsFormPage")
  public String editorsFormRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/forms/editors";
  }

  @RequestMapping("/simpleTablePage")
  public String simpleTableRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/tables/simple";
  }

  @RequestMapping("/dataTablePage")
  public String dataFormRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/tables/data";
  }

  @RequestMapping("/mailboxPage")
  public String mailboxRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/mailbox/mailbox";
  }

  @RequestMapping("/readMailPage")
  public String readMailRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/mailbox/readMail";
  }

  @RequestMapping("/composeMailPage")
  public String composeMailRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/mailbox/compose";
  }

  @RequestMapping("/invoicePage")
  public String invoiceRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/invoice";
  }
  @RequestMapping("/profilePage")
  public String profileRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/profile";
  }
  @RequestMapping("/loginExamplePage")
  public String loginExampleRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/login";
  }

  @RequestMapping("/registerExamplePage")
  public String registerExampleRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/register";
  }

  @RequestMapping("/lockscreenPage")
  public String lockscreenRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/lockscreen";
  }

  @RequestMapping("/page404")
  public String page404Request(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/404";
  }

  @RequestMapping("/page500")
  public String page500Request(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/500";
  }

  @RequestMapping("/blankPage")
  public String blankRequest(HttpServletRequest request, Model model) throws Exception {
    return "backend/examples/blank";
  }

}

